<? 
	global $FullUrl, $lg, $ArticleMainLast; 
	$last = '';
	if(isset($ArticleMainLast))
	{
		if($ArticleMainLast == '1')
			$last = ' last';
	}
?>
 <?    
	if($articles){ 
?>
<!-- Box -->
      <div class="box<?=$last?>">
      	<? if(isset($ArticleMainLast)) unset($ArticleMainLast) ?>
        <h2><span><?=$ArticleMain?></span></h2>
        <a href="<?=GetArtLinkSiteList($ArticleMainCid, $lg);?>" class="see-all"><img src="<?= $FullUrl ?>/<?= CST_IMAGES ?>/view_sidetree.png" height="24" /></a>        
        <div class="cl">&nbsp;</div>
        <div class="posts">
        <?
        for($i = 0; $i < count($articles); $i++)
        {
        
            $article_name = $articles[$i]['name_'.$lg]?$articles[$i]['name_'.$lg]:NO_NEWS;                
            if(!empty($articles[$i]['name_'.$lg]))
                $article_link = $FullUrl.GetArtLinkFull($articles[$i], $lg); 
            else
                $article_link = "#";
            
            $article_short = $articles[$i]['short_'.$lg]  ;  
            $img = $FullUrl.$articles[$i]['img']  ;  
			//echo $img;
			
            $img = GetImage($img);
			$date_post = date("d-m-Y",strtotime($articles[$i]['create_date']));
   		 ?>
         
          <!-- Post -->
          <div class="post <?=($i%2 != 0) ? 'last': ''?>">
          	
            <div class="image"> <a href="<?=$article_link?>"><img src="<?=$img?>" alt="<?=$article_name?>"  title="<?=$article_name?>" width="72"/></a> </div>
            <div class="data">
              <h4><a href="<?=$article_link?>"><?=$article_name?></a></h4>
              <p><?=$article_short?></p>
            </div>
          </div>
          <!-- /Post --> 
          <?=($i%2 != 0) ? '<div class="cl">&nbsp;</div>': ''?>
          <? } ?>
          
        </div>
      </div>
      <!-- /Box -->  
<?
	}
?>    
